import request from '@/utils/request'

// 查询运营指标设置列表
export function listDealOperationalIndicatorsSetting(query) {
  return request({
    url: '/operational/dealOperationalIndicatorsSetting/list',
    method: 'get',
    params: query
  })
}

// 查询运营指标设置详细
export function getDealOperationalIndicatorsSetting(id) {
  return request({
    url: '/operational/dealOperationalIndicatorsSetting/' + id,
    method: 'get'
  })
}

// 保存运营指标设置
export function saveDealOperationalIndicatorsSetting(data) {
  return request({
    url: '/operational/dealOperationalIndicatorsSetting/save',
    method: 'post',
    data: data
  })
}

// 删除运营指标设置
export function delDealOperationalIndicatorsSetting(id) {
  return request({
    url: '/operational/dealOperationalIndicatorsSetting/' + id,
    method: 'delete'
  })
}

// 导出运营指标设置
export function exportDealOperationalIndicatorsSetting(query) {
  return request({
    url: '/operational/dealOperationalIndicatorsSetting/export',
    method: 'get',
    params: query
  })
}

// 获取全部指标
export function findAll() {
  return request({
    url: '/operational/dealOperationalIndicatorsSetting/findAll',
    method: 'get'
  })
}
